package com.xintonghua.hongyi.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/1/10.
 * 包名：com.xintonghua.hongyi.bean
 */

public class ClubCardBean implements Parcelable {
    private String name;
    private int degree;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDegree() {
        return degree;
    }

    public void setDegree(int degree) {
        this.degree = degree;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeInt(this.degree);
    }

    public ClubCardBean() {
    }

    protected ClubCardBean(Parcel in) {
        this.name = in.readString();
        this.degree = in.readInt();
    }

    public static final Parcelable.Creator<ClubCardBean> CREATOR = new Parcelable.Creator<ClubCardBean>() {
        @Override
        public ClubCardBean createFromParcel(Parcel source) {
            return new ClubCardBean(source);
        }

        @Override
        public ClubCardBean[] newArray(int size) {
            return new ClubCardBean[size];
        }
    };
}
